#include "cxx_list.h"
#include <iostream>
using namespace ds_cxx;
using namespace std;
int main()
{
    List<int> ls;
    
    for(int i=0;i<10;++i)
    {
        ls.PushBack(i);
    }

    cout << "size : " <<ls.Length() << endl;

    for(List<int>::Iterator it=ls.Begin();it != ls.End(); ++it)
    {
        cout << *it << " ";
    }
    cout << endl;
    //ls.Clear();

    for(List<int>::Reverse_Iterator it=ls.RBegin();it != ls.REnd(); ++it)
    {
        cout << *it << " ";
    }
    cout << endl;
    return 0;
}